// axios
import request from '@/utils/request'
import qs from 'qs';

// 登录
export function login(data) {
  return request({
    url: '/task/public/login',
    method: 'post',
    headers: {
      'Content-Type':'application/x-www-form-urlencoded'
    },
    data:qs.stringify(data),
  })
}

// 获取用户订单数量
export function getUserData(data) {
  return request({
    url: '/task/index/getUserData',
    method: 'post',
    data,
  })
}


// 提现
// 登录
export function subcoin(data) {
  return request({
    url: '/task/pay/subcoin',
    method: 'post',
    headers: {
      'Content-Type':'application/x-www-form-urlencoded'
    },
    data:qs.stringify(data),
  })
}


// 获取规则
export function getData(data) {
  return request({
    url: '/task/index/getData',
    method: 'post',
    data,
  })
}

